package com.px.service;


import com.px.pojo.ShCommodity;

import java.util.List;

public interface ShCommodityService {

    //获取商品列表
    List<ShCommodity> selectShCommodityList(String commodityName,
                                            Integer dicOneId,
                                            Integer dicTwoId,
                                            Double minPrice,Double maxPrice,
                                            String ram,
                                            Integer currentPageNo, Integer pageSize)throws Exception;

    //获取用户记录数
    int selectShCommodityCount(String commodityName,
                               Integer dicOneId,
                               Integer dicTwoId,
                               Double minPrice,Double maxPrice,
                               String ram)throws Exception;

    //获取商品信息
    ShCommodity selectShCommodity(Integer commodityId)throws Exception;

    //添加商品信息
    int insertShCommodity(ShCommodity shCommodity)throws Exception;

    //更新商品信息
    int updateShCommodity(ShCommodity shCommodity)throws Exception;

    //删除商品信息
    int deleteShCommodity(Integer id)throws Exception;
}
